
export interface HeroData {
    cardId:number;
    hp: number;
    power: number;
    atk: number;
    spinePath: string;
    skillId:number;
}

export enum WinState {
    none = 0,
    win,
    lose,
    timeout
}

export enum RoleState {
    none = 0,
    idle,
    run,
    skill1,
    skill2
}

export enum RoleBuff {
    None = 0,
    Shield,//护盾
    HpAdd,//回血
}

export enum RoleDeBuff {
    None = 0,
    Freeze, //冰冻
    Burn,//灼烧
}

export enum SkillIconType {
    None = 0,
    AllSkillIcon, 
    FightSkillIcon,
}

export enum  ShieldType{//注：护盾类型
    Heal = 1,//治疗护盾
    Defense,//抵伤护盾
    Reduce,//减伤护盾
    Immune,//免伤护盾
    Share,//伤害分担
    Rebound,//反弹护盾
}

export enum  BattleRoleState{
    Vertigo= 1,//眩晕
    Frozen,//冰冻
    Silent,//沉默
    NoMagic,//禁怒
    Taunt,//嘲讽
    Immune,//免疫
    Disarm,//缴械
    Blinding,//致盲
    SeriousInjury,//重伤
    DecHeal,//减疗
    Rebound,//反弹
    Resurrection,//复活
    Confusion,//混乱
    Attract,//众矢之的
    Banishment,//放逐
    NoConsumption,//战斗开始时无消耗释放技能
    IgnoreDamageSharing,//无视伤害分摊
    Seduce,//魅惑
    Invincible,//无敌
}

let ResPath = {
    number_effects:"prefabs/number_effects/",
    hero_spinepath:"spine/monster/",
    skill_icon:"ui/skillicon/",
    hitEffect:"prefabs/effects/hitEffect/",
    flyEffect:"prefabs/effects/additionEffect/",
    heroicon:"ui/heroicon/",
    bufficon:"ui/buffIcon/",
    buff:"prefabs/buff/",
}

//属性ID对应Key
let AttributeTypes= {
    1: 'hp',//最大生命
    2: 'atk',//攻击
    3: 'def',//防御
    4: 'magicDef',//魔防
    5: 'douge',//闪避
    6: 'hit',//命中
    7: 'crit',//暴击
    8: 'critAdd',//暴击效果
    9: 'suckAdd',//吸血效果
    10: 'healthAdd',//恢复效果
    11: 'powerAdd',//怒气恢复
    12: 'atkSpeed',//攻击速度
    13: 'initSpeed',//出手速度
    14: 'finalAdd',//伤害加成
    15: 'finalDec',//伤害减免
    16: 'defCrit',//抗暴击
    17: 'critDec',//暴击伤害减免
    101: 'curHp',//	当前生命
    102: 'curPosition',//当前位置
    103: 'curPower',//当前怒气
    1001: 'hpRate',//最大生命百分比
    1002: 'atkRate',//攻击百分比
    1003: 'defRate',//防御百分比
    1004: 'magicDefRate',//魔防百分比
}
let TemporaryType = {
    201: 'killNum',//当回合杀敌数
    202: 'defPass',//无视护甲值
    203: 'magicdefPass',//无视魔抗值
    204: 'damage',//造成的伤害
    205: 'crit',//暴击次数
}
//属性ID对应key
let AttributeKeys = {
    hp: 1,
    atk: 2,
    def: 3,
    magicDef: 4,
    douge: 5,
    hit: 6,
    crit: 7,
    critAdd: 8,
    suckAdd: 9,
    healthAdd: 10,
    powerAdd: 11,
    atkSpeed: 12,
    initSpeed: 13,
    finalAdd: 14,
    finalDec: 15,
    defCrit: 16,
    critDec: 17,
    hpRate: 1001,
    atkRate: 1002,
    defRate: 1003,
    magicDefRate: 1004,
}

let Environment = {
    globalProBase:100000,
}

//战斗常用文字prefabName
let ElementWord = {
    hit: 'fightWord1001',//命中
    douge: 'fightWord1002',//闪避
    crit: 'fightWord1003',//暴击
    heal: 'fightWord1005',//治疗
}

export {
    ResPath,
    AttributeTypes,
    TemporaryType,
    AttributeKeys,
    Environment,
    ElementWord
}


